<!doctype html>
<html lang="en">
  <head>
    <title>时间转换</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="css/index.css" type="text/css"/>
    <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
	<script src="js/jquery-3.2.1.min.js" type="text/javascript"></script>
	<script src="js/jquery.timers-1.2.js" type="text/javascript"></script>
	<script src="js/bootstrap.min.js" type="text/javascript"></script>
	<script src="js/utils.js" type="text/javascript"></script>
	<script src="js/index.js" type="text/javascript"></script>
  </head>
  <body>
        <div class="firstDiv">
            <fieldset>
                <div class="input-group">
                    <span class="input-group-addon">现在的字符时间为：</span>
                    <input type="text" class="form-control input-readonly" readonly="true" id="initLocal" />
                </div>
                <div class="input-group">
                    <span class="input-group-addon">现在的Unix时间戳：</span>
                    <input type="text" class="form-control input-readonly" readonly="true" id="initUnix"/>
                </div>
            </fieldset>
            <fieldset>
                <form class="form-inline">
					<div class="btn-group time-btn">
						<button type="button" class="btn btn-default today">今天</button>
						<button type="button" class="btn btn-default yesterday">昨天</button>
						<button type="button" class="btn btn-default this-week">本周</button>
						<button type="button" class="btn btn-default last-week">上周</button>
						<button type="button" class="btn btn-default this-month">本月</button>
						<button type="button" class="btn btn-default last-month">上月</button>
						<button type="button" class="btn btn-default this-season">本季度</button>
						<button type="button" class="btn btn-default last-season">上季度</button>
						<button type="button" class="btn btn-default nearly-thirty-days">近三十天</button>
						<button type="button" class="btn btn-default nearly-three-months">近三月</button>
						<button type="button" class="btn btn-default all-days">全部</button>
					</div>
				</form>
			</fieldset>
            <fieldset>
                <form class="form-inline">
                    <div class="form-group d-center">
                        <div class="input-group w200">
                            <span class="input-group-addon">字符时间范围：</span>
                            <input type="text" class="form-control input-readonly" readonly="true" id="fixedTimeLocalStart"/>
							<span class="input-group-addon">至</span>
							<input type="text" class="form-control input-readonly" readonly="true" id="fixedTimeLocalEnd" />
                        </div>
                    </div>
					<div class="form-group d-center d-mt15">
                        <div class="input-group w200">
                            <span class="input-group-addon">Unix时间范围：</span>
                            <input type="text" class="form-control input-readonly" readonly="true" id="fixedTimeUnixStart"/>
							<span class="input-group-addon">至</span>
							<input type="text" class="form-control input-readonly" readonly="true" id="fixedTimeUnixEnd" />
                        </div>
                    </div>
                </form>
            </fieldset>
            <div>
				<h2>Unix时间戳 → 字符时间</h2>
				<div class="form-group">
					<div class="input-group ">
						<input type="text" class="form-control" id="firstUnix2timeInput"/>
						<button type="button" class="btn btn-success" id="unix2time">转换</button>
						<input type="text" class="form-control input-readonly" readonly="true" id="secondUnix2timeInput"/>
					</div>
				</div>
            </div>
            <div>
				<h2>字符时间 → Unix时间戳</h2>
				<div class="form-group">
					<div class="input-group">
						<input type="text" class="form-control" id="firstTime2unixInput"/>
						<button type="button" class="btn btn-success" id="time2unix">转换</button>
						<input type="text" class="form-control input-readonly" readonly="true" id="secondTime2unixInput"/>
					</div>
				</div>
            </div>
            <div>
                <div class="form-group">
                    <div class="input-group">
                        <span class="input-group-addon">北京时间</span>
						<input type="text" class="form-control" id="year" /><span class="input-group-addon">年</span>
						<input type="text" class="form-control" id="month" /><span class="input-group-addon">月</span>
						<input type="text" class="form-control" id="day" /><span class="input-group-addon">日</span>
						<input type="text" class="form-control" id="hour" /><span class="input-group-addon">时</span>
						<input type="text" class="form-control" id="minute" /><span class="input-group-addon">分</span>
						<input type="text" class="form-control" id="second" /><span class="input-group-addon">秒</span>
                    </div>
                </div>
				<div class="d-center-m15">
					<button type="button" class="btn btn-success btn-sm btn-block" id="time2time">转换Unix时间戳</button>
				</div>
                <div class="input-group">
                    <input type="text" class="form-control input-readonly" readonly="true" id="longTime" />
                </div>
            </div>
        </div>
  </body>

  <!--   按钮选中状态 -->
</html>